package com.zjitc.serviceedu.entity.vo;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.zjitc.serviceedu.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author: ${赵诚挚}
 * @Date: 2024/10/19 16:50
 */
@Data
public class WatchHistoryVO {
    private Long id;
    private Long userId;
    private Long vid;
    private Long courseId;
    private String videoId;
    private String watchTime;
    private Integer lastPosition;
    private String courseTitle;
    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = BaseEntity.CustomDateDeserializer.class)
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @JsonDeserialize(using = BaseEntity.CustomDateDeserializer.class)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
    private String videoTitle;

    private String Cover;

    public WatchHistoryVO(Long id, Long userId, Long vid, Long courseId, String videoId, String watchTime, Integer lastPosition, String courseTitle, Date gmtCreate, Date gmtModified, String videoTitle, String cover) {
        this.id = id;
        this.userId = userId;
        this.vid = vid;
        this.courseId = courseId;
        this.videoId = videoId;
        this.watchTime = watchTime;
        this.lastPosition = lastPosition;
        this.courseTitle = courseTitle;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
        this.videoTitle = videoTitle;
        Cover = cover;
    }

    public WatchHistoryVO() {
    }
}